package com.aggron.concurrency.examples.Immutable;

import com.aggron.concurrency.annotations.NotThreadSafe;

import java.util.HashMap;
import java.util.Map;

/**
 * @author LR2SD
 * @description final类的使用
 * @date 2018-06-10 16:50
 */
@NotThreadSafe
public class ImmutableExample1 {
    public static final int a=1;
    public static final String b="b";
    public static final Map map=new HashMap();

    public static void main(String [] args){
        //a=2
        //b=3
        map.put(1,2);
        map.put(1,3);
    }

    private void test1(final int a){
        //a=2;
    }
}
